package com.zyz.K_集合.Iterator迭代器;

import java.util.ArrayList;
import java.util.Collection;

/**
 * @author: vick
 * @Date: 2025/3/27
 * @Description:
 * @version: 1.0
 */
public class TestIterator5 {
    public static void main(String[] args) {
        Collection collection = new ArrayList();
        collection.add(111);
        collection.add(222);
        collection.add("vick");
        collection.add("aaa");

        for (Object obj : collection) {
            System.out.println(obj);
        }
    }
}
